<?php

class Xml2Json {
	public function ConvertXmlToJson($xml){

		$data = simplexml_load_string($xml, "SimpleXMLElement");
		$json = json_encode($data, LIBXML_NOCDATA);
		return $json;
	}
}
